package com.zsc.wxm.ysh.anjo.service.base.enums.resources;

import lombok.Getter;

/**
 * 描述： 租房状态枚举
 *
 * @author playmaker
 * @since 2021/2/24 23:15
 */
@Getter
public enum RentHouseStatus {
    /**
     * 租房状态
     */
    NOT_OVERDUE(1, "待确定"),
    OVERDUE(2, "已确定")
    ;

    /**
     * 值
     */
    private int value;

    /**
     * 描述
     */
    private String desc;

    RentHouseStatus(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static String getEnumDesc(int value) {
        for (RentHouseStatus type : RentHouseStatus.values()) {
            if (type.getValue() == value) {
                return type.getDesc();
            }
        }
        return "";
    }
}
